import axios from "axios";

const baseUrl = "";

export function get(url) {
  return function (params = {}) {
    return axios.get(baseUrl + url, { params }).then((res) => {
      const { errno, data } = res.data;
      if (errno === 0) {
        return data;
      }
    });
  };
}
